import {get, post, del, put} from "@/apis/http/request";
import {Dept} from "@/apis/model/system/DeptModel";

/**
 * 得到菜单分页列表
 * @param params
 */
export const deptPage = (params: any) => post("/dept/page", params)

/**
 * 循环获取权限
 * @returns 
 */
export const deptLoop = () => get("/dept/loopList")

/**
 * 删除数据
 * @param id 
 * @returns 
 */
export const deleteDeptById = (id: number) => del("/dept/delete/"+ id)

/**
 * 新增数据
 * @param param
 */
export const insertDept = (param: Dept) => post("/dept", param)

/**
 * 更新数据
 * @param param
 */
export const updateDept = (param: Dept) => put("/dept", param)

